http://androidexample.com/Upload_File_To_Server_-_Android_Example/index.php?view=article_discription&aid=83&aaid=106

http://www.coderzheaven.com/2012/04/26/upload-image-android-device-server-method-4/

https://reecon.wordpress.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/

https://www.learn2crack.com/2014/06/android-load-image-from-internet.html


http://stackoverflow.com/questions/16508811/sending-file-over-tcp-between-android-and-pc

http://android-er.blogspot.fr/2015/01/transfer-image-between-android-devices.html


http://androracle.blogspot.fr/2012/08/image-transfer-to-android-from-java_2.html


http://lakjeewa.blogspot.fr/2012/03/simple-android-application-to-send-file.html    ---------------------- bien


http://android-er.blogspot.fr/2014/02/android-sercerclient-example-client.html

http://www.coderzheaven.com/2012/04/29/download-file-android-device-remote-server-custom-progressbar-showing-progress/


http://androidexample.com/AsyncroTask_Example_To_Get_Server_Data_-_Android_Example/index.php?view=article_discription&aid=59&aaid=84

https://examples.javacodegeeks.com/core-java/apache/commons/net-commons/download-file-from-ftp-server/

https://www.codeofaninja.com/2011/10/android-download-file-with-progress-bar.html

http://www.101apps.co.za/index.php/articles/using-an-asynctask-to-download-a-file.html

http://stackoverflow.com/questions/5135438/example-android-bi-directional-network-socket-using-asynctask

https://systembash.com/a-simple-java-tcp-server-and-tcp-client/

https://xelsoft.wordpress.com/2013/10/02/simple-tcp-client-server-communication-using-android/

http://www.roman10.net/2011/11/23/android-tcp-client-and-server-communication-programmingillustrated-with-example/


http://android-er.blogspot.fr/2014/02/android-sercerclient-example-client.html


http://lakjeewa.blogspot.fr/2014/05/simple-android-client-server-application.html      ------- bien a voir 

http://android-er.blogspot.fr/2015/05/play-stream-video-from-raspberry-pi-on.html

http://helloraspberrypi.blogspot.fr/2013/12/communication-between-android-raspberry.html	-------

http://helloraspberrypi.blogspot.fr/2013/12/java-exercise-client-and-server-example_20.html		-----

// le client recoit

File myFile = new File ("/mnt/sdcard/Pictures/A.jpg");
FileInputStream fis = new FileInputStream(myFile);
OutputStream os = socket.getOutputStream();
int filesize = (int) myFile.length();

byte [] buffer  = new byte [filesize];
     int bytesRead =0;
     while ((bytesRead = fis.read(buffer)) > 0) {
     os.write(buffer, 0, bytesRead);
//Log display exact the file size
     System.out.println("SO sendFile" + bytesRead);
     }
     os.flush();
     os.close();
     fis.close();
     Log.d("Client", "Client sent message");
     socket.close();
	 
	 
	 
	 
http://www.rgagnon.com/javadetails/java-0542.html	 
	 
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class SimpleFileServer
{

	public final static int SOCKET_PORT = 8081; 
	public final static String FILE_TO_SEND = "/home/pi/JAVA/   ";  

	public static void main (String [] args ) throws IOException 
	{
			FileInputStream fis = null;
			BufferedInputStream bis = null;
			OutputStream os = null;
			ServerSocket servsock = null;
			Socket sock = null;
		
			try 
			{
					servsock = new ServerSocket(SOCKET_PORT);
		  
					while (true)
					{
						System.out.println("Waiting...");
					
						try
						{
							sock = servsock.accept();
							System.out.println("Accepted connection : " + sock);
							// send file
							File myFile = new File (FILE_TO_SEND);
							byte [] mybytearray  = new byte [(int)myFile.length()];
							fis = new FileInputStream(myFile);
							bis = new BufferedInputStream(fis);
							bis.read(mybytearray,0,mybytearray.length);
							os = sock.getOutputStream();
							System.out.println("Sending " + FILE_TO_SEND + "(" + mybytearray.length + " bytes)");
							os.write(mybytearray,0,mybytearray.length);
							os.flush();
							System.out.println("Done.");
						}
					
						finally 
						{
							if (bis != null) bis.close();
							if (os != null) os.close();
							if (sock!=null) sock.close();
						}
					}
			}
			
			finally
			{
				if (servsock != null) servsock.close();
			}
	}
}


http://androracle.blogspot.fr/2012/08/image-transfer-to-android-from-java_2.html

http://lakjeewa.blogspot.fr/2012/03/simple-android-application-to-send-file.html		---------


http://www.myandroidsolutions.com/2012/07/20/android-tcp-connection-tutorial/

http://lakjeewa.blogspot.fr/2014/05/simple-android-client-server-application.html		---------

http://lakjeewa.blogspot.fr/2015/01/android-client-server-chat-application.html    --------------- chat bien

https://github.com/nguyeti/sensor_app/tree/master/Thread_AsyncTask   --------- capteur

http://www.java2s.com/Open-Source/Android_Free_Code/Development/socket/prashantadesara_SocketAndroidClient.htm  ----- code source
